package cn.yunhe.entity;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class Role implements Serializable {
    private int rid;
    private String rname;
    private int rflag;

    private Set<Permission>permissionSet=new HashSet<>();


    private Set<Member>memberSet=new HashSet<>();

    public Role() {
    }

    public Role(int rid, String rname, int rflag, Set<Permission> permissionSet, Set<Member> memberSet) {
        this.rid = rid;
        this.rname = rname;
        this.rflag = rflag;
        this.permissionSet = permissionSet;
        this.memberSet = memberSet;
    }

    public int getRid() {
        return rid;
    }

    public void setRid(int rid) {
        this.rid = rid;
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname;
    }

    public int getRflag() {
        return rflag;
    }

    public void setRflag(int rflag) {
        this.rflag = rflag;
    }

    public Set<Member> getMemberSet() {
        return memberSet;
    }

    public void setMemberSet(Set<Member> memberSet) {
        this.memberSet = memberSet;
    }

    public Set<Permission> getPermissionSet() {
        return permissionSet;
    }

    public void setPermissionSet(Set<Permission> permissionSet) {
        this.permissionSet = permissionSet;
    }
}
